package top.hzy520;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@EnableZuulProxy
@PropertySource(value = "classpath:parameter.properties")
@SpringBootApplication
public class YuyuBuyServiceGetwayApplication {

    public static void main(String[] args) {
        SpringApplication.run(YuyuBuyServiceGetwayApplication.class, args);
    }

    /**
     * 用于properties文件占位符解析
     * @return
     */
    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
        return new PropertySourcesPlaceholderConfigurer();
    }
}
